<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
class Gallery_model extends Model{
    var $gallery_path;
    function Gallery_model(){
        
        parent::Model();
        
     
        $this->gallery_path= realpath(APPPATH .'/images');

    }
    
    
    function do_upload(){
        $config = array(
            'allowed_types' =>'jpg|jpeg|gif|png',
            'upload_path' => $this->gallery_path);
            
            
            
    
        $this->load->library('upload',$config);
        $this->upload->do_upload();
        
        
        
        
        
    }
    
    
    
    
}



?>
